﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Windows.Data;
using System.Printing;
using System.Management;
using System.IO.Ports;
using System.Windows.Controls;
using CrystalDecisions.CrystalReports.Engine;
using HMS.Data;
using HMS.Report;

namespace HMS.ClassLibrary
{
    public class Session
    {
        public User User;
        public AccessType AccessType=AccessType.Employee;
        public DateTime StartDateTime;
        public Session(User user)
        {
            this.User = user;
            switch (user.UserTypeID)
            {
                case 1:
                    this.AccessType = AccessType.Administrator;
                    break;
                case 2:
                    this.AccessType = AccessType.Employee;
                    break;
                case 3:
                    this.AccessType = AccessType.Manager;
                    break;
            }
            this.StartDateTime = DateTime.Now;
        }

    }
}
